package com.dave.gd.core.services.bean;

import java.io.Serializable;

/**
 * Created by linzq on 2014/11/3.
 */
public class ReqData implements Serializable {
    private static final long serialVersionUID = -1788283854882003204L;
    private HeadInfo headInfo = new HeadInfo();
    
    public HeadInfo getHeadInfo() {
        return headInfo;
    }
    
    public void setHeadInfo(HeadInfo headInfo) {
        this.headInfo = headInfo;
    }
    
    private String serviceName;
    /**
     * .
     */
    private String method;
    
    /**
     * .
     */
    private Object[] arg;
    
    public String getServiceName() {
        return serviceName;
    }
    
    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }
    
    public String getMethod() {
        return method;
    }
    
    public void setMethod(String method) {
        this.method = method;
    }
    
    public Object[] getArg() {
        if (arg == null) {
            return new Object[0];
        }
        return arg;
    }
    
    public void setArg(Object[] arg) {
        this.arg = arg;
    }
    
    /**
     * .
     * 
     * @author wuyx
     */
    public int getArgCount() {
        return arg == null ? 0
            : arg.length;
    }
}
